package v1

import (
	"ginblog/api/common/v1/blog"
	"github.com/gin-gonic/gin"
	"github.com/gin-gonic/gin/binding"
)

func Login(c *gin.Context) {
	login := blog.LoginV1{}
	_ = c.ShouldBindBodyWith(&login, binding.JSON)
	login.DoLogin(c)
}
